//
//  WSChannelRankItemCell.m
//  CharonTVProject
//
//  Created by karong on 2023/8/1.
//

#import "WSChannelRankItemCell.h"

@interface WSChannelRankItemCell ()
@property (weak, nonatomic) IBOutlet UILabel *rankLabel;
@property (weak, nonatomic) IBOutlet UIButton *totalViewButton;
@end

@implementation WSChannelRankItemCell

- (void)setDataWithObject:(WSVideo *)object index:(NSInteger)index {
    [super setDataWithObject:object];
    [self.totalViewButton setTitle:[NSString ws10Thousands1DecimalWithValue:object.play_num] forState:(UIControlStateNormal)];
    [self.totalViewButton setButtonImageTitleStyle:(WSButtonImageTitleStyleLeft) padding:3];
    self.rankLabel.text = WSSF(@"%ld", (long)index + 1);
    self.rankLabel.textColor = [UIColor colorFromHexRGB:RankTextColor[index]];
    
}

@end
